import request from '@/utils/request'

// 查询均值查询列表
export function listPollutant(query) {
  return request({
    url: '/monitor/avg/pollutant/list',
    method: 'get',
    params: query
  })
}

// 查询均值查询详细
export function getPollutant(id) {
  return request({
    url: '/monitor/avg/pollutant/' + id,
    method: 'get'
  })
}

// 新增均值查询
export function addPollutant(data) {
  return request({
    url: '/monitor/avg/pollutant',
    method: 'post',
    data: data
  })
}

// 修改均值查询
export function updatePollutant(data) {
  return request({
    url: '/monitor/avg/pollutant',
    method: 'put',
    data: data
  })
}

// 删除均值查询
export function delPollutant(id) {
  return request({
    url: '/monitor/avg/pollutant/' + id,
    method: 'delete'
  })
}
